package com.nebula.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.nebula.pojo.Files;
import com.nebula.pojo.User;


public interface FilesMapper {
    int deleteByPrimaryKey(Long fileid);

    int insert(Files record);

    int insertSelective(Files record);

    Files selectByPrimaryKey(Long fileid);

    int updateByPrimaryKeySelective(Files record);

    int updateByPrimaryKey(Files record);
    
    int selectFileCount(Files files);
    
    int selectFileCountByPrimaryKey(Long fileid);
    
    List<Files> selectPictureList(String username);
    
    List<Files> selectDocumentList(String username);
    
    List<Files> selectByFolderId(Integer folderid);
    
    List<Files> selectVideoList(String username);
    
    List<Files> selectSeedsList(String username);
    
    List<Files> selectMusicList(String username);
    
    List<Files> selectOtherList(String username);
    
    int plDelete(@Param("map") Map<String,List<Long>> map,@Param("username") String username);
    
    List<Long> selectFileIdByFodlerId(@Param("username") String username,@Param("map") Map<String,List<Integer>> map);
    
    int selectFolderIdByFileId(Long fileid);
    
    int plInsert(@Param("list") List<Files> list);
    
    
}